package com.bootdo.project.service.impl;

import com.bootdo.project.domain.TGoods;
import com.bootdo.project.dao.TGoodsMapper;
import com.codegen.vo.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by xxxx on 2019/03/19.
 */
@Service
public class TGoodsService {

	@Autowired
    private TGoodsMapper tGoodsMapper;
    
    public int deleteByPrimaryKey(Long id){
        return tGoodsMapper.deleteByPrimaryKey(id);
    }

    public int insert(TGoods record){
        return tGoodsMapper.insert(record);
    }

    public int insertSelective(TGoods record){
        return tGoodsMapper.insertSelective(record);
    }

    public TGoods selectByPrimaryKey(Long id){
        return tGoodsMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TGoods record){
        return tGoodsMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(TGoods record){
        return tGoodsMapper.updateByPrimaryKey(record);
    }

    public List<TGoods> selectByCondition(TGoods record){
        return tGoodsMapper.selectByCondition(record);
    }

    public List<TGoods> selectAll(){
        return tGoodsMapper.selectAll();
    }

    public List<TGoods> selectByPage(Page<TGoods> page){
        return tGoodsMapper.selectByPage(page);
    }

    public Integer count(TGoods record){
        return tGoodsMapper.count(record);
    }

    public int deleteByCondition(TGoods record){
        return tGoodsMapper.deleteByCondition(record);
    }

}
